package com.ffapp.rainmonitorcustom.bean;

import android.text.TextUtils;

import java.util.ArrayList;

public class PatrolRectifyListData extends BasisBean {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * XH : 1
	 * CHECKMAN : 王五
	 * CHECKTIME : 2018-03-08 00:00
	 * OFFCOMNO : sm0006
	 * OFFCOMNAME : 京华大酒店
	 * PROJECTNO : 350203
	 * NO : 0000002
	 * RANK : 02
	 * EXPLAIN : 过期
	 * CHECKTYPE : 电梯
	 * POSITION : 大堂客梯
	 * TIMELIMIT : 2018-04-07 00:00
	 * STATUS : 02
	 * RN : 1
	 */

	private int XH;
	private String CHECKMAN;
	private String CHECKTIME;
	private String OFFCOMNO;
	private String OFFCOMNAME;
	private String PROJECTNO;
	private String NO;
	private String RANK;
	private String EXPLAIN;
	private String CHECKTYPE;
	private String POSITION;
	private String TIMELIMIT;
	private String STATUS;
	private int RN;
	private boolean IsRecord;

	public int getXH() {
		return XH;
	}

	public void setXH(int XH) {
		this.XH = XH;
	}

	public String getCHECKMAN() {
		return CHECKMAN;
	}

	public void setCHECKMAN(String CHECKMAN) {
		this.CHECKMAN = CHECKMAN;
	}

	public String getCHECKTIME() {
		return CHECKTIME;
	}

	public void setCHECKTIME(String CHECKTIME) {
		this.CHECKTIME = CHECKTIME;
	}

	public String getOFFCOMNO() {
		return OFFCOMNO;
	}

	public void setOFFCOMNO(String OFFCOMNO) {
		this.OFFCOMNO = OFFCOMNO;
	}

	public String getOFFCOMNAME() {
		return OFFCOMNAME;
	}

	public void setOFFCOMNAME(String OFFCOMNAME) {
		this.OFFCOMNAME = OFFCOMNAME;
	}

	public String getPROJECTNO() {
		return PROJECTNO;
	}

	public void setPROJECTNO(String PROJECTNO) {
		this.PROJECTNO = PROJECTNO;
	}

	public String getNO() {
		return NO;
	}

	public void setNO(String NO) {
		this.NO = NO;
	}

	public String getRANK() {
		return RANK;
	}
	public String getRANKStr() {
		switch (RANK){
			case "01":
				return "一般隐患";
			case "02":
				return "重要隐患";
			case "03":
				return "危险隐患";
			case "04":
				return "未定级";

		}
		return RANK;
	}
	public static  ArrayList<String> getRANKListStr() {
		ArrayList<String> listStr = new ArrayList<>();
		listStr.add("一般隐患");
		listStr.add("重要隐患");
		listStr.add("危险隐患");
		listStr.add("未定级");
		return listStr;
	}
	public static ArrayList<String> getRANKListParamsStr() {
		ArrayList<String> listStr = new ArrayList<>();
		listStr.add("01");
		listStr.add("02");
		listStr.add("03");
		listStr.add("04");
		return listStr;
	}

	public void setRANK(String RANK) {
		this.RANK = RANK;
	}

	public String getEXPLAIN() {
		if(TextUtils.isEmpty(EXPLAIN))return "";
		return EXPLAIN.trim();
	}

	public void setEXPLAIN(String EXPLAIN) {
		this.EXPLAIN = EXPLAIN;
	}

	public String getCHECKTYPE() {
		return CHECKTYPE;
	}

	public void setCHECKTYPE(String CHECKTYPE) {
		this.CHECKTYPE = CHECKTYPE;
	}

	public String getPOSITION() {
		return POSITION;
	}

	public void setPOSITION(String POSITION) {
		this.POSITION = POSITION;
	}

	public String getTIMELIMIT() {
		return TIMELIMIT;
	}

	public void setTIMELIMIT(String TIMELIMIT) {
		this.TIMELIMIT = TIMELIMIT;
	}

	public String getSTATUS() {
		return STATUS;
	}

	public String getSTATUSStr() {
		switch (STATUS){
			case "01":
				return "未整改";
			case "02":
				return "重新整改";
			case "03":
				return "待审核";
			case "04":
				return "已整改";

		}
		return RANK;
	}
	public static String getSTATUSStr(String STATUS) {
		if(TextUtils.isEmpty(STATUS))return "未整改";
		switch (STATUS){
			case "01":
				return "未整改";
			case "02":
				return "重新整改";
			case "03":
				return "待审核";
			case "04":
				return "已整改";

		}
		return "";
	}

	public void setSTATUS(String STATUS) {
		this.STATUS = STATUS;
	}

	public int getRN() {
		return RN;
	}

	public void setRN(int RN) {
		this.RN = RN;
	}

	public boolean isRecord() {
		return IsRecord;
	}

	public void setRecord(boolean record) {
		IsRecord = record;
	}
}
